package com.ypc.webdemo.controller.dto;

import lombok.Getter;

/**
 * @author yinpengcheng
 * @Date 2023/7/21
 */
public enum ServerCode {
    success(1, "成功"),
    fail(0, "失败"),
    param_error(-1, "参数异常"),
    not_result(-2, "记录不存在");

    @Getter
    private Integer code;
    @Getter
    private String message;

    ServerCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
